package org.ly.uap.client.util;

import org.ly.uap.client.validation.Assertion;

public class AssertionHolder {
    private static final ThreadLocal<Assertion> threadLocal = new ThreadLocal();

    public static Assertion getAssertion() {
        return (Assertion) threadLocal.get();
    }

    public static void setAssertion(Assertion assertion) {
        threadLocal.set(assertion);
    }

    public static void clear() {
        threadLocal.set(null);
    }
}
